home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Bitmap / Sources / Menus.fr < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.7 KB  |  64 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Menus.fr
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef FWRESFIL_K
  13. #include "FWResFil.k"
  14. #endif
  15.  
  16. #ifndef DEFINES_K
  17. #include "Defines.k"
  18. #endif
  19.  
  20. #ifndef FWMENUS_FR
  21. #include "FWMenus.fr"
  22. #endif
  23.  
  24. // CyberDog is really only supported in Metrowerks builds. Unfortunately,
  25. // we can't detect that we are in Metrowerks REZ or the Metrowerks ODFRC
  26. // plugin, so we always define FW_SUPPORTS_CYBERDOG true for resource
  27. // compiles.
  28. #ifdef FW_SUPPORTS_CYBERDOG
  29. #undef FW_SUPPORTS_CYBERDOG
  30. #endif
  31.  
  32. #define FW_SUPPORTS_CYBERDOG 1
  33.  
  34. //----------------------------------------------------------------------------
  35. //    Menus
  36. //----------------------------------------------------------------------------
  37.  
  38. resource FW_RMenuBar(kMenuBar)
  39. {
  40.     "About ODFBitmap...",
  41.  
  42.     {
  43.         FW_RPullDownMenu
  44.         (
  45.             "Settings"
  46.             {
  47.                 FW_RTextItem(cHalfSize, FW_kNoKeyEquivalent, "50%"),
  48.                 FW_RTextItem(cRealSize, FW_kNoKeyEquivalent, "100%"),
  49.                 FW_RTextItem(cDoubleSize, FW_kNoKeyEquivalent, "200%"),
  50.                 FW_RTextItem(cFitToFrame, FW_kNoKeyEquivalent, "Scale to Frame"),
  51.                 FW_RSeparatorItem(),
  52.                 FW_RTextItem(cRequestFrame, FW_kNoKeyEquivalent, "Request Frame"),
  53.                 FW_RTextItem(cRemoveFrame, FW_kNoKeyEquivalent, "Remove Frame")
  54. #if FW_SUPPORTS_CYBERDOG
  55.                 // Cyberdog: menu commands to support "Live" content
  56.                 ,FW_RSeparatorItem(),
  57.                 FW_RTextItem (cReload, 'R', "Reload Image"),
  58.                 FW_RTextItem (cReloadFast, FW_kNoKeyEquivalent, "Reload Continuously")
  59. #endif
  60.             }
  61.         )
  62.     }
  63. };
  64.